<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>编辑实验室</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css">
</head>
<body>
<%@ include file="../header.jsp" %>
<div class="container">
    <h2>编辑实验室</h2>
    <form action="${pageContext.request.contextPath}/labs?action=update" method="post">
        <input type="hidden" name="id" value="${lab.labId}">
        <div class="form-group">
            <label for="labName">实验室名称:</label>
            <input type="text" id="labName" name="labName" value="${lab.labName}" required>
        </div>
        <div class="form-group">
            <label for="location">位置:</label>
            <input type="text" id="location" name="location" value="${lab.location}" required>
        </div>
        <div class="form-group">
            <label for="capacity">容量:</label>
            <input type="number" id="capacity" name="capacity" value="${lab.capacity}" required>
        </div>
        <div class="form-group">
            <label for="equipment">设备:</label>
            <input type="text" id="equipment" name="equipment" value="${lab.equipment}" required>
        </div>
        <div class="form-group">
            <label for="availableTime">可用时间:</label>
            <input type="text" id="availableTime" name="availableTime" value="${lab.availableTime}" required>
        </div>
        <div class="form-group">
            <label for="description">描述:</label>
            <textarea id="description" name="description" rows="4">${lab.description}</textarea>
        </div>
        <div class="form-group">
            <button type="submit">更新</button>
        </div>
    </form>
</div>
</body>
</html>